import request from '@/utils/request/index.js'

export default {
  // 首页头部展示信息
  topDetail(params) {
    return request({
      url: '/store/mini/index/topDetail',
      method: 'GET',
      params
    })
  },
  // 首页接口
  getHomePageList(data) {
    return request({
      url: '/store/mini/dynamic/getHomePageList',
      method: 'POST',
      data
    })
  },
  // 查询动态列表(视频流)
  getDynamicList(data) {
    return request({
      url: '/store/mini/dynamic/getDynamicList',
      method: 'POST',
      data
    })
  },
  // 首页动态视频列表
  getHomeDynamics(data) {
    return request({
      url: '/store/mini/dynamic/getHomePageList',
      method: 'POST',
      data
    })
  },
  // 首页关注、发现动态视频列表v2.0.0版本
  getHomeDynamicsV2(data) {
    return request({
      url: '/store/mini/dynamic/getHomePageListV2',
      method: 'POST',
      data
    })
  },
  // 我的页面团视频流接口
  getMyDynamicList (data) {
    return request({
      url: '/store/mini/dynamic/getMyDynamicList',
      method: 'POST',
      data
    })
  },
  // 我的页面信息
  getMyPageInfo (data) {
    return request({
      url: '/store/mini/account/getMyPageInfo',
      method: 'POST',
      data
    })
  },

  // 获取我的奖金卡片信息
  getCardInfo(){
    return request({
      url: '/store/mini/bonus/getCardInfo',
      method: 'POST'
    })
  },
  // 奖金池页面
  getPoolInfo(){
    return request({
      url: '/store/mini/bonus/getPoolInfo',
      method: 'POST'
    })
  },
  // 奖金中心，卡片信息
  getBonusCenterCardInfo(){
    return request({
      url: '/store/mini/bonus/getBonusCenterCardInfo',
      method: 'POST'
    })
  },
  // 奖金记录-往期记录
  getPreviousRecords(data){
    return request({
      url: '/store/mini/bonus/getPreviousRecords',
      method: 'POST',
      data
    })
  },
  // 领取奖金
  receiveBonus(data){
    return request({
      url: '/store/mini/bonus/receiveBonus',
      method: 'POST',
      data
    })
  },
  // 奖金记录-往期记录-明细
  getBonusLog(data){
    return request({
      url: '/store/mini/bonus/getBonusLog',
      method: 'POST',
      data
    })
  },
  // 奖金记录-往期记录-明细详情
  getBonusLogDetails(data){
    return request({
      url: '/store/mini/bonus/getBonusLogDetails',
      method: 'POST',
      data
    })
  },
  // 任务中心
  getAchievementList(){
    return request({
      url: '/store/mini/bonus/getAchievementList',
      method: 'POST'
    })
  }
}
